package com.demo.hystrix.client;

import entity.Result;
import entity.StatusCode;
import org.springframework.stereotype.Component;

/**
 * Author by admin, Email xx@xx.com, Date on 2020/6/4.
 * PS: Not easy to write code, please indicate.
 */
//我是集中处理降级的~~~~~~~~~~~~~~~~~~~~~~~~~
@Component
public class FallbackService implements SearchApiService {
    @Override
    public Result queryAllQuestion() {
        return new Result(true, StatusCode.OK,"我是熔断异常程序出现异常，稍后再试！！！！");
    }
}
